<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="body">
	<script language="javascript" src="<%=basePath%>js/jquery.js"></script>
	<script language="javascript" src="<%=basePath%>js/date.js"></script>
	<script language="javascript" src="<%=basePath%>js/chatRecord.js"></script>
	<script type="text/javascript">
	</script>
	所有聊天记录&nbsp;&nbsp;&nbsp;&nbsp;按日期查询
	<input type="text" name="date" id="date"
		onclick='popUpCalendar(this,this,"yyyy-mm-dd")' readonly="true" />
	<input type="button" value="查询" onclick="record()" />
	</br>
	<hr />
	<div name="record" id="record">
<c:if test="${clist==null}">
	<span style="color:#ff00ff; font-size:20px;">无聊天记录</span>
	</c:if>
		<c:forEach var="a" items="${clist}">
			<c:if test="${a.username==user}">
				<div style="color: #0000ff;">
					${a.username }&nbsp;&nbsp;${a.recordTime}
				</div>
				<div style="color: #0000ff;">
					&nbsp;&nbsp;&nbsp;${a.recordContext}内容...............
				</div>
			</c:if>
			<c:if test="${a.username!=user}">
				<div style="color: #ff00ff;">
					${a.username }&nbsp;&nbsp;${a.recordTime}
				</div>
				<div style="color: #ff00ff;">
					&nbsp;&nbsp;&nbsp;${a.recordContext}内容...............
				</div>
			</c:if>
		</c:forEach>
	</div>
</div>
